package com.stock.core.persistence.reader.stock;

import com.stock.api.domain.stock.HistoryAnalysisBean;

import java.math.BigDecimal;
import java.util.List;

public interface HistoryAnalysisReaderMapper {

    /**
     * 根据指定主键获取一条数据库记录,history_analysis
     *
     * @param id
     */
    HistoryAnalysisBean selectByPrimaryKey(Long id);

    /**
     * 获取未买入或者未卖出的股票业务数据
     *
     * @param stockCode
     */
    List<HistoryAnalysisBean> selectHistoryAnalysis(String stockCode);

    /**
     * 根据股票代码获取买入总金额
     *
     * @param stockCode
     * @return
     */
    BigDecimal getTotalMarketValue(String stockCode);
}